<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
		<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
	<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>节点列表</h2>
<ul class="list-group">
<?php if(is_array($nodelist)): foreach($nodelist as $key=>$vo): ?><li class="list-group-item"><?php echo ($vo["html"]); echo ($vo["title"]); ?> 
  <a href="<?php echo U('Node/nodeadd',array('pid'=>$vo['id'],'level'=>$vo['level']+1));?>">[添加子节点]</a>
  <a href="<?php echo U('Node/nodedel',array('id'=>$vo['id'],'level'=>$vo['level']));?>">[删除节点]</a>
  </li><?php endforeach; endif; ?>
</ul>
</div>

</body>
</html>